<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<%@ page session="false"%>
<!DOCTYPE html>
<html>
<head>
	<script src="<c:url value="/resources/js/jquery-1.10.2.js" />"></script>
	<link href="<c:url value="/resources/css/bootstrap.css"/>" rel="stylesheet"
		type="text/css" />
	<script src="<c:url value="/resources/js/bootstrap.js"/>"></script>
	<meta charset="utf-8">
	<title>JS Bin</title>
</head>
<body>
	<div class="container">
		<div class="col-sm-8 col-md-6">
			<form id="mainForm" action="" class="form-horizontal" method="post">
				<div class="form-group">
					<label class="col-xs-12 col-sm-3">*FirstName</label>
					<div class="col-xs-12 col-sm-9">
						<input id="fNameInput" class="form-control" 
							value="${emp.firstName}">
					</div>
				</div>

				<div class="form-group">
					<label class="col-xs-12 col-sm-3">*LastName</label>
					<div class="col-xs-12 col-sm-9">
						<input id="lNameInput" class="form-control"
							value="${emp.lastName}">
					</div>
				</div>
				
				<div class="form-group">
					<label class="col-xs-12 col-sm-3">*BirthDay</label>
					<div class="col-xs-12 col-sm-9">
						<input type="date" id="birthDayInput" class="form-control"
							value="<fmt:formatDate pattern="dd/MM/yyyy" value="${emp.birthDay}" />">
					</div>
				</div>
				
				<div class="form-group">
					<label class="col-xs-12 col-sm-3">*Email</label>
					<div class="col-xs-12 col-sm-9">
						<input id="email" class="form-control"
							value="${emp.email}">
					</div>
				</div>

				<div class="form-group text-center">
					<input class="btn btn-primary" type="submit" value="Submit">
					<br> <label>* required</label>
				</div>
			</form>
		</div>
	</div>
	
	<script type="text/javascript">
		
	function submitForm(){
		var fNameInput = $('fNameInput').val();
		var lNameInput = $('lNameInput').val();
		var lNameInput = $('lNameInput').val();
		
		alert('Ok to submit');
// 		$('form#mainForm').submit();
	}
	</script>
</body>
</html>